const test = async function (req, res, next) {
    // 休眠随机时间
    const sleepTime = Math.floor(Math.random() * 2 * 1000);
    await new Promise((resolve) => {
        setTimeout(resolve, sleepTime);
    });

    res.sendSuccess("Welcome to test module, sleep: " + sleepTime + "ms");
}

module.exports = { test }